package com.zhx.cloud.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 *describe: 
 *
 *@author zhanghaixuan
 *@date 2019/02/22
 **/
@Data
@TableName("user")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class User  extends Model<User> {
	private static final long serialVersionUID = 1L;

	@TableId(value = "uid",type = IdType.AUTO)
	private Integer uid;

	private String username;

	private String password;

	@Override
	protected Serializable pkVal() {
		return this.uid;
	}
}
